//
//  TopUpController.m
//  AppNew
//
//  Created by 陈名邦 on 2019/6/24.
//  Copyright © 2019 华伟. All rights reserved.
//

#import "TopUpController.h"

@interface TopUpController ()

@end

@implementation TopUpController

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([_isUP isEqualToString:@"2"]) {
        self.title = @"提币";
        _upView.hidden = YES;
        _downView.hidden = NO;
        self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"提币记录" style:UIBarButtonItemStyleDone target:self action:@selector(recordAction)];
        
        
    }else{
        self.title = @"充币";
        
        _upView.hidden = NO;
        _downView.hidden = YES;
        self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"充币记录" style:UIBarButtonItemStyleDone target:self action:@selector(recordAction)];
    }

}

- (void)recordAction{

    RecordListController *RLVC = [[RecordListController alloc] init];
    if ([_isUP isEqualToString:@"2"]) {
        RLVC.title = @"提币记录";
        RLVC.requestURL = @"http://119.160.234.147:8080/userOpt/getMyTbWalletRecord";
    }else{
        self.title = @"充币记录";
        
        RLVC.requestURL = @"http://119.160.234.147:8080/userOpt/getMyCzWalletRecord";
    }
    RLVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:RLVC animated:YES];
    
}

- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:animated];
    [self requestData];
    
}

- (void)requestData{
    
    
}

- (IBAction)submitAction:(id)sender {
    
    
}
- (IBAction)copyAction:(id)sender {
    
    
}
@end
